package com.xiaoxin.factory.simplefactory;

import com.xiaoxin.factory.simplefactory.service.ICourse;

/**
 * @Description: 简单工厂测试类
 * @Author: xiaoXin
 * @Date: 2019/12/10 23:33
 */
public class SimpleFactoryTest {
    public static void main(String[] args) {
        CourseFactory factory=new CourseFactory();
        ICourse javaCourse = factory.ceate("java");
        javaCourse.record();
        ICourse pythonCourse = factory.ceate("python");
        pythonCourse.record();
    }

}
